package cn.szzsi._sys;


import cn.szzsi.core.interceptor.AdminInterceptor;
import com.jfinal.config.Routes;
import com.jfinal.kit.StrKit;

public class _SysRoutes extends Routes {
    @Override
    public void config() {
        //超级管理员
        addInterceptor(new AdminInterceptor());
        setBaseViewPath("/_view/_sys");
        add("/mall/sys/article", ArticleController.class,"/article");
        add("/mall/sys/articlecategory", ArticleCategoryController.class,"/articlecategory");
        add("/mall/sys/navigation", NavigationController.class,"/navigation");
        add("/mall/sys/customer",CustomerController.class,"/customer");
        add("/mall/sys/generate",GenerateController.class,"/generate");
        add("/mall/sys/adManage",AdManageController.class,"/admanage");
        add("/mall/sys/paymentConfig", PaymentConfigController.class,"/paymentconfig");
        add("/mall/sys/productCategroy", ProductCategoryController.class,"/productcategory");
        add("/mall/sys/friendLink", FriendLinkController.class,"/friendlink");
        add("/mall/sys/toCashingManager", ToCashingController.class,"/tocashingmanage");
        add("/mall/sys/product", ProductController.class,"/product");
        add("/mall/sys/businessapp",BusinessAppController.class,"/weixin");

    }

    public static void main(String[] args) {
        System.out.println(StrKit.getRandomUUID());
    }
}
